package 组合模式;

import java.util.List;

/**
 * 狗
 *
 * @author ithuameng
 */
public abstract class Dog {

    protected String name;

    public Dog() {
    }

    public Dog(String name) {
        this.name = name;
    }

    public abstract void dance();

    public Dog getChild(int i) {
        throw new UnsupportedOperationException();
    }

    public List<Dog> getChilds() {
        throw new UnsupportedOperationException();
    }
}
